export default function(Vue) {
  Vue.directive("hover", {
    inserted(el, binding) {
      el.addEventListener("mouseenter", () => {
        binding.value.hover = true;
      });
      el.addEventListener("mouseleave", () => {
        binding.value.hover = false;
      });
    },
  });
}
